package com.ten_4_4.hiring.company.service;

import com.ten_4_4.hiring.comm.PageModel;
import com.ten_4_4.hiring.company.dao.ApplicationDao;
import com.ten_4_4.hiring.company.po.ApplicationPo;

public class ApplicationService {
	
	private ApplicationDao applicationDao = new ApplicationDao();
	
	public PageModel<ApplicationPo> listTalentPositionPaging(int talentId, int pageNo, int pageSize) {
		return applicationDao .listTalentPositionPaging(talentId, pageNo, pageSize);
	}

	public int deleteApplication(int applicationId) {
		return applicationDao.deleteApplication(applicationId);
	}

	public boolean isDelivery(int talentId, int positionId) {
		return applicationDao.isDelivery(talentId, positionId);
	}

	public int deliveryResume(int positionId, int talentId, int resumeId) {
		return applicationDao.deliveryResume(positionId, talentId, resumeId);
	}

}
